using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Threading.Tasks;

namespace WebUpdaterAdminCore.Models
{
    public class WebSiteInfoExtend
    {
        
        /// <summary>
        /// 站点Id
        /// </summary>
        [Key]
        public string SiteId { get; set; }

        /// <summary>
        /// 站点名称
        /// </summary>
        public string SiteName { get; set; }


        /// <summary>
        /// web文件包下载地址
        /// web文件包必须是zip压缩文件
        /// </summary>
        public string WebPacketUrl { get; set; }

        /// <summary>
        /// web文件包md5值
        /// </summary>
        public string WebPackMd5 { get; set; }

        /// <summary>
        /// 决定站点版本的文件
        /// </summary>
        public string WebAssemblyFileName { get; set; }

        /// <summary>
        /// 站点版本信息
        /// </summary>
        public string WebVersion { get; set; }

        /// <summary>
        /// 执行操作前的命令
        /// </summary>
        public string BeforExecCommands { get; set; }

        /// <summary>
        /// 执行操作后的命令
        /// </summary>
        public string AfterExecCommands { get; set; }

        /// <summary>
        /// 执行http get 测试web站点
        /// </summary>
        public string TestAction { get; set; }
    }
}
